<!DOCTYPE html>
<html>
  <body>
    <h1>你好,JavaScript!</h1>
    <button onclick="sayHello()">点我一下</button>

    <script>
      function sayHello() {
        alert("欢迎使用JavaScript!");
      }
    </script>
  </body>
</html>
